package com.byfan.barter.service;

import com.byfan.barter.entity.Commodity;

import java.util.List;

/**
 * @Author: FBY
 * @Description
 * @Version 1.0
 * @Date: 2021/5/14 18:03
 */
public interface CommodityService {

    Commodity save(Commodity commodity);

    Commodity getById(Integer id);

    List<Commodity> getAll();

    List<Commodity> getByExample(Commodity commodity);

    void delete(Integer id);

//    List<Commodity> getByOpenId(String openId);
//
//    List<Commodity> getByOpenIdAndStatus(String openId,String status);
//
//    List<Commodity> getLikeName(String title);
//
//    List<Commodity> getByClassify(String classify);
}
